﻿using Demo.PetaPoco.Application.Dtos.Area;

namespace Demo.PetaPoco.Application.Extensions;

public static class IAreaExtensions
{
	public static string[] ToAreas(this IArea area)
	{
		if (area == null)
		{
			return [];
		}
		string[] areas = [$"{area.ProvinceNum}", $"{area.CityNum}", $"{area.RegionNum}"];
		return areas;
	}
}
